<template>
	<rx-dialog @ok="handleSubmit" @cancel="cancel">
        <rx-layout>
            <template #middle>
				<screen-view-tree ref="screenViewTree" :treeData="treeData" :selectKeys="selectKeys"></screen-view-tree>
			</template>
		</rx-layout>
	</rx-dialog>
</template>

<script>
import {RxDialog, RxLayout, Util} from "@lowcode/jpaas-base-lib";
import screenViewTree from "./screen-view-tree.vue"
export default {
	name: "ScreenViewManageTreeDialog",
	props: {
		destroy:{
			type:Function
		},
		treeData: {
			type: Array,
			default:()=>[],
		},
	},
	components:{
		screenViewTree,
        RxDialog,
        RxLayout
	},
	data() {
		return {
			selectKeys:[],
		}
	},
	methods: {
		handleSubmit() {
			Util.closeWindow(this, "ok",this.selectKeys);
		},
		cancel() {
			Util.closeWindow(this, "cancel");
		},
	}
}
</script>

<style lang="less">

</style>
